home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
008a
/
fglqbx10.zip
/
READ.ME
< prev
Wrap
Text File
|
1991-06-12
|
2KB
|
43 lines
The file FGLQBX10.ZIP contains QuickBASIC versions of all programs in the
Fastgraph User's Guide.
The contents of this file are:
READ.ME this file
*.BAS QuickBASIC example programs
The QuickBASIC function SETMEM is used in several of the Fastgraph example
programs. Specifically, it appears in the examples that use virtual video
pages or the FGdispfile routine. Since Fastgraph and Fastgraph/Light
dynamically control their own memory allocation for these purposes, you must
use SETMEM to reduce the size of QuickBASIC's far heap.
If your programs use FGdispfile, it is not absolutely necessary to use the
SETMEM function, but it is more efficient to do so. With FGdispfile, the
value passed to SETMEM should ideally be -(n+16), where "n" is the size in
bytes of the largest image file to be displayed.
If your programs use virtual video pages, you must use SETMEM. In this case,
the value passed to SETMEM must be at least -n*(p+16), where "n" is the
number of virtual pages your program will allocate, and "p" is the largest
virtual page size for any video mode under which your program will run. Here
are the virtual page sizes (i.e., the values of "p") for the video modes that
use virtual pages.
Mode Number Page Size
----------- ---------
4 16,384
5 16,384
6 16,384
7 4,096
9 32,768
11 32,768
12 32,768
19 64,000
For example, suppose you want to write a program that runs in video modes 4,
9, 12, 13, and 19. To calculate the value passed to SETMEM, you would use
p = 64000 because mode 19 has the largest page size for the video modes your
program supports. Note that video mode 13 does not use virtual pages, so its
page size is not relevant.